package com.finance.report.bean.pojo;

import com.finance.framework.lang.BaseObject;
import lombok.Data;

import java.math.BigDecimal;

/**
 *
 * 组织机构月报表数据bean
 */
@Data
public class OrganizationSalary extends BaseObject {
    /**
     * 组织机构编号
     */
    private String organizationCode;

    /**
     * 机构名称
     * */
    private String organizationName;

    /**
     * 月份 格式：2017-03
     */
    private String salaryMonth;

    /**
     * 首件单量
     */
    private Integer majorCount;

    /**
     * 拖件单量
     */
    private Integer minorCount;

    /**
     * 首件配费
     */
    private BigDecimal majorFee;

    /**
     * 拖件配费
     */
    private BigDecimal minorFee;

    /**
     * 总配费
     */
    private BigDecimal totalFee;

    private int version;


    @Override
    public boolean equals(Object object) {
        if (object instanceof OrganizationSalary) {
            OrganizationSalary supplierSalary = (OrganizationSalary) object;
            return supplierSalary.getId().equals(super.getId());
        }
        return false;
    }

    @Override
    public int hashCode() {
        return this.getId().hashCode();
    }

}